﻿using Furion.DatabaseAccessor;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JQData.Core.DbModel
{
    public class HotMoneyStockCycleProfit : EntityNotTenant
    {


        public int HotMoneyId { get; set; }

        public int StockId { get; set; }

        public decimal BuyVol { get; set; }

        /// <summary>
        /// 净买入
        /// </summary>
        public decimal SellVol { get; set; }

        public decimal BuyAmount { get; set; }

        public decimal SellAmount { get; set; }

        /// <summary>
        /// 盈利
        /// </summary>
        public decimal Profit { get; set; }

        public bool IsWin { get; set; }

        public int HoldingDays { get; set; }

        public string SourceTradeIds { get; set; }

        [NotMapped]
        public List<int> SourceTradeIdList { get; set; }

        public string StockName { get; set; }

        public string HotmoneyName { get; set; }

        public DateOnly StartDate { get; set; }

        public DateOnly? EndDate { get; set; }

        public HotMoney HotMoney { get; set; }

        public StockBasic Stock { get; set; }

    }
}
